import pandas as pd
from datetime import datetime,timedelta
#读取路径
path1 = r'E:\试飞数据\差分GPS\102GPS_deal.txt'

# 读取数据
df1 = pd.read_csv(path1, sep = '\t', names=['time','H-ELL','H-MSL','Latitude','Longitude','VEast','VNorth','VUp'],skiprows = 1)

df1['bj_time'] = pd.to_datetime(df1['time']) + timedelta(seconds = 1)

df_contact = df1.set_index('bj_time')

print(df1)
print(df_contact)
# print(time_offset)

